Integrand size = 12, antiderivative size = 16 \[ \int \sqrt {-1-\tan ^2(x)} \, dx=-\arctan \left (\frac {\tan (x)}{\sqrt {-\sec ^2(x)}}\right ) \]
[Out]
Time = 0.02 (sec) , antiderivative size = 16, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 4, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.333, Rules used = {3738, 4207, 223, 209} \[ \int \sqrt {-1-\tan ^2(x)} \, dx=-\arctan \left (\frac {\tan (x)}{\sqrt {-\sec ^2(x)}}\right ) \]
[In]
[Out]
Rule 209
Rule 223
Rule 3738
Rule 4207
Rubi steps \begin{align*} \text {integral}& = \int \sqrt {-\sec ^2(x)} \, dx \\ & = -\text {Subst}\left (\int \frac {1}{\sqrt {-1-x^2}} \, dx,x,\tan (x)\right ) \\ & = -\text {Subst}\left (\int \frac {1}{1+x^2} \, dx,x,\frac {\tan (x)}{\sqrt {-\sec ^2(x)}}\right ) \\ & = -\arctan \left (\frac {\tan (x)}{\sqrt {-\sec ^2(x)}}\right ) \\ \end{align*}
Time = 0.01 (sec) , antiderivative size = 16, normalized size of antiderivative = 1.00 \[ \int \sqrt {-1-\tan ^2(x)} \, dx=\text {arctanh}(\sin (x)) \cos (x) \sqrt {-\sec ^2(x)} \]
[In]
[Out]
Time = 0.07 (sec) , antiderivative size = 17, normalized size of antiderivative = 1.06
method | result | size |
derivativedivides | \(-\arctan \left (\frac {\tan \left (x \right )}{\sqrt {-1-\tan \left (x \right )^{2}}}\right )\) | \(17\) |
default | \(-\arctan \left (\frac {\tan \left (x \right )}{\sqrt {-1-\tan \left (x \right )^{2}}}\right )\) | \(17\) |
risch | \(-2 \sqrt {-\frac {{\mathrm e}^{2 i x}}{\left ({\mathrm e}^{2 i x}+1\right )^{2}}}\, \ln \left ({\mathrm e}^{i x}-i\right ) \cos \left (x \right )+2 \sqrt {-\frac {{\mathrm e}^{2 i x}}{\left ({\mathrm e}^{2 i x}+1\right )^{2}}}\, \ln \left ({\mathrm e}^{i x}+i\right ) \cos \left (x \right )\) | \(64\) |
[In]
[Out]
Result contains complex when optimal does not.
Time = 0.25 (sec) , antiderivative size = 19, normalized size of antiderivative = 1.19 \[ \int \sqrt {-1-\tan ^2(x)} \, dx=i \, \log \left (e^{\left (i \, x\right )} + i\right ) - i \, \log \left (e^{\left (i \, x\right )} - i\right ) \]
[In]
[Out]
\[ \int \sqrt {-1-\tan ^2(x)} \, dx=\int \sqrt {- \tan ^{2}{\left (x \right )} - 1}\, dx \]
[In]
[Out]
none
Time = 0.41 (sec) , antiderivative size = 17, normalized size of antiderivative = 1.06 \[ \int \sqrt {-1-\tan ^2(x)} \, dx=\arctan \left (\cos \left (x\right ), \sin \left (x\right ) + 1\right ) + \arctan \left (\cos \left (x\right ), -\sin \left (x\right ) + 1\right ) \]
[In]
[Out]
Result contains complex when optimal does not.
Time = 0.26 (sec) , antiderivative size = 16, normalized size of antiderivative = 1.00 \[ \int \sqrt {-1-\tan ^2(x)} \, dx=-i \, \log \left (\sqrt {\tan \left (x\right )^{2} + 1} - \tan \left (x\right )\right ) \]
[In]
[Out]
Time = 0.11 (sec) , antiderivative size = 16, normalized size of antiderivative = 1.00 \[ \int \sqrt {-1-\tan ^2(x)} \, dx=-\mathrm {atan}\left (\frac {\mathrm {tan}\left (x\right )}{\sqrt {-{\mathrm {tan}\left (x\right )}^2-1}}\right ) \]
[In]
[Out]